<?php
// No directAcces
defined( '_AppBackMiage' ) or die( 'Restricted access' );
if(isAdministrateur ()){
    include_once (DS."backoffice/include/header.php");

    if(isset($_GET['uid']) && !empty($_GET['uid']))
    {
        $etudiant = new Etudiant($_GET['uid']);
    }
    else
    {
        redirectTo(URLBACK."_useretudiant_list");
    }
    include_once( DS."backoffice/include/toppanel_utilisateurs.php");

    ?>
    <div id="wrapper">
        <div id="content">
            <div id="box">
                <h3 id="adduser"><?php echo $etudiant->getNomUtilisateur()." ".$etudiant->getPrenomUtilisateur(); ?></h3>
                <form id="form" method="post">
                    <fieldset id="personal">
                        <legend>Informations Personnelles</legend>
                        <label>Email :</label>
                        <label class="input"><?php echo $etudiant->getEmailUtilisateur(); ?></label>
                        <br />
                    </fieldset>
                    <fieldset id="address">
                        <legend>Adresse</legend>
                        <label>Adresse :</label>
                        <label class="input"><?php echo $etudiant->getAdresse1(); ?></label>
                        <br />
                        <label>Adresse + :</label>
                        <label class="input"><?php echo $etudiant->getAdresse2(); ?></label>
                        <br />
                        <label>Ville :</label>
                        <label class="input"><?php echo $etudiant->getVille(); ?></label>
                        <br />
                        <label>Code Postal :</label>
                        <label class="input"><?php echo $etudiant->getCP(); ?></label>
                        <br />
                    </fieldset>
                    <fieldset id="opt">
                        <legend>OPTIONS</legend>
                        <label>Promo :</label>
                        <label class="input"><?php echo $etudiant->getPromo(); ?></label>
                        <br />
                        <label>Droits Acc&eacute;es :</label>
                        <label class="input"><?php echo $etudiant->getTypeById($etudiant->getIdUtilisateur()); ?></label>
                    </fieldset>
                </form>
            </div>
        </div>
    <?php
    include_once (DS."backoffice/include/sidebar.php");
    include_once (DS."backoffice/include/footer.php");
}
else
{
    redirectTo(URLBACK);
}
?>